package cn.lili.controller.feign.order;

import cn.lili.modules.order.order.client.OrderComplaintStatisticsClient;
import cn.lili.modules.order.order.service.OrderComplaintStatisticsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author paulG
 * @since 2022/6/28
 **/
@RestController
@RequiredArgsConstructor
public class OrderComplaintStatisticsFeignController implements OrderComplaintStatisticsClient {

    private final OrderComplaintStatisticsService orderComplaintStatisticsService;

    @Override
    public long waitComplainNum(String storeId) {
        return orderComplaintStatisticsService.waitComplainNum(storeId);
    }

    @Override
    public long waitComplainNumByUrban(String storeId) {
        return orderComplaintStatisticsService.waitComplainNumByUrban(storeId);
    }
}
